home *** CD-ROM | disk | FTP | other *** search
- Path: gate.net!not-for-mail
- From: feathers@gate.net (Michael Feathers)
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Subject: Re: Hungarian notation
- Followup-To: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Date: 6 Jan 1996 22:17:34 -0500
- Organization: CyberGate, Inc.
- Message-ID: <4cne0e$1020@seminole.gate.net>
- References: <30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.solon.com> <4ath75$e7i@barnacle.iol.ie> <4b4kij$svt@news.microsoft.com> <dewar.819489496@schonberg> <4bd
- NNTP-Posting-Host: seminole.gate.net
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Alan Brain (aebrain@dynamite.com.au) wrote:
- : The argument about HN is resolvable to differing views on abstraction:
- :
- : HN proponents argue that sometimes knowing the exact representation of a
- : thing is crucual to successfully manipulating it: Knowing that f_p is a
- : float is a lot more important than knowing the p stands for
- : Plasmotic_Heat_Coefficient.
- :
- : If the language they're working in is assembler, or C, then they have a
- : point: they are willing to lay delayed-action bombs in the code (when the
- : type changes) just in order to complete the program to a reasonable level
- : of functionality in a reasonable time.
- :
- : But in any high-level language - Ada, Modular-2, etc often you don't give
- : a monkey's about the representation - whether it's a 64-bit float, a
- : 32-bit IEEE float, or whatever. You're much more interested in what the
- : thing means. If you got caught up in the intricacies of what goes on in
- : the machine, you're making something non-portable, non-maintainable, and
- : non-understandable.
-
- Subject: Re: Hungarian notation
- Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
- Followup-To: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,co<30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.solon.com> <4ath75$e7i@ba
-
- rnacle.iol.ie> <4b4kij$svt@news.microsoft.com> <dewar.819489496@schonberg> <4bd
-
- 3ga$80a@beatty.slip.netcom.com> <30DC677A.5116@zeta.org.au> <4bhf24$adq@beatty.slip.netcom.com> <30E0E51A.5A4F@zeta.org.au> <4ckvpd$sap@fred.netinfo.com.au>
- Distribution:
-
- Alan Brain (aebrain@dynamite.com.au) wrote:
- : The argument about HN is resolvable to differing views on abstraction:
- :
- : HN proponents argue that sometimes knowing the exact representation of a
- : thing is crucual to successfully manipulating it: Knowing that f_p is a
- : float is a lot more important than knowing the p stands for
- : Plasmotic_Heat_Coefficient.
- :
- : If the language they're working in is assembler, or C, then they have a
- : point: they are willing to lay delayed-action bombs in the code (when the
- : type changes) just in order to complete the program to a reasonable level
- : of functionality in a reasonable time.
- :
- : But in any high-level language - Ada, Modular-2, etc often you don't give
- : a monkey's about the representation - whether it's a 64-bit float, a
- : 32-bit IEEE float, or whatever. You're much more interested in what the
- : thing means. If you got caught up in the intricacies of what goes on in
- : the machine, you're making something non-portable, non-maintainable, and
- : non-understandable.
-
- Funny thing.. you seem to equate the type of a variable with its
- representation. I think that the type of a variable is very important
- semantic information which ought to be immediately visible when code is
- being modified or reviewed. This issue of programmers accidently using
- the wrong HN prefix in a declaration is surely possible, but easily
- checked for in a review. In a strongly typed language like C++ or
- Ada, it is detectable in compilation.
-
- If anyone does not think that type is important information that ought
- to kept in mind for semantic purposes, just consider this: someone
- anonymously offers you sex. The type of person offering it should
- be important to you, unless you are bisexual, and even then you
- might like to know as some casting may be required. :-)
-
-
- -Mike (master of silly analogies)
-